import math
while True:
    a, b, c = map(int, input().strip().split())
    low = min(a, b, c)
    high = max(a, b, c)
    mid = a+b+c-low-high
    print(low, mid, high)
